{extend name="layout/layout" /}

{block name="pagecss"}

{/block}

{block name="content"}
<div class="row">
	<div class="col-lg-4 col-md-4 col-xs-12">
		<div class="dashboard-stat2 ">
			<div class="display">
				<div class="number">
					<h3 class="font-green-sharp">
						<span data-counter="counterup" data-value="7800"> ￥ {$info.rechargeAmount ? $info.rechargeAmount /100 : 0}</span>
						<small class="font-green-sharp"></small>
					</h3>
					<small>累计充值金额</small>
				</div>
				<div class="icon">
					<i class="icon-pie-chart"></i>
				</div>
			</div>
		</div>
	</div>
	<div class="col-lg-4 col-md-4 col-xs-12">
		<div class="dashboard-stat2 ">
			<div class="display">
				<div class="number">
					<h3 class="font-green-sharp">
						<span data-counter="counterup" data-value="7800"> {$info.hasOpenNum} </span>
						<small class="font-green-sharp"></small>
					</h3>
					<small> 开通商户数 </small>
				</div>
				<div class="icon">
					<i class="icon-trophy"></i>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="row">
	<div class="col-md-12">
		<div class="tabbable-line boxless tabbable-reversed">
			<ul class="nav nav-tabs">
				<li class="active">
					<a href="#tab_0" data-toggle="tab" aria-expanded="true"> 开通商户 </a>
				</li>
				<li>
					<a href="#tab_1" data-toggle="tab" aria-expanded="false" class="open-log"> 开通记录 </a>
				</li>
			</ul>

			<div class="tab-content">
				<div class="tab-pane active" id="tab_0">
					<div class="portlet light">
						<div class="portlet-title">
							<div class="caption">
								<i class="icon-share font-dark"></i>
								<span class="caption-subject font-dark bold uppercase"> 开通商户</span>
							</div>
							<div class="actions">
								<a class="btn btn-circle btn-icon-only btn-default fullscreen" href="javascript:;" data-original-title="" title=""> </a>
							</div>
						</div>
						<div class="portlet-body">
							<!--<h4>Horizontal Form</h4>-->
							<form id="ajax-form" action="" class="form-horizontal" name="ajaxForm">
								<div class="">
									<table id="tenant_table" class="table table-bordered table-hover dataTable">
										<thead>
										<th>商户编号</th>
										<th>商户名称</th>
										<th>行业类目</th>
										<th>所在地</th>
										<th>账号</th>
										<th>手机号</th>
										<th>开通日期</th>
										</thead>
									</table>
								</div>
							</form>
						</div>
					</div>
				</div>

				<div class="tab-pane" id="tab_1">
					<div class="portlet light">
						<div class="portlet-title">
							<div class="caption">
								<i class="icon-share font-dark"></i>
								<span class="caption-subject font-dark bold uppercase"> 开通记录</span>
							</div>
							<div class="actions">
								<a class="btn btn-circle btn-icon-only btn-default fullscreen" href="javascript:;" data-original-title="" title=""> </a>
							</div>
						</div>
						<div class="portlet-body">
							<!--<h4>Horizontal Form</h4>-->
							<form action="" class="form-horizontal" name="ajaxForm">
								<div class="">
									<table id="openLog_table" class="table table-bordered table-hover dataTable">
										<thead>
										<th>商户编号</th>
										<th>商户名称</th>
										<th>开通日期</th>
										<th>开通费用（元）</th>
										</thead>
									</table>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<input type="hidden" class="agent_id" name="agentId" value="{$info.id}">
<input type="hidden" class="tenantList_url" value="{:url('agent/agent/tenantList')}">
<input type="hidden" class="openLogList_url" value="{:url('agent/agent/openLogList')}">
{/block}

{block name="pagescript"}
<script src="__STATIC__/agent/pages/js/agent.js" type="text/javascript"></script>
{/block}